import { createRouter, createWebHistory } from 'vue-router'
import Login from '../views/Login.vue'

const routes = [{
        path: '/',
        name: 'login',
        component: Login
    },
    {
        path: '/about',
        name: 'About',
        component: () =>
            import ('../views/About.vue')
    }
]

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
})

export default router